<?php

/*
List Pages (admin_list_pages.php)
*/

$page_title = "List Pages";
$rank_check = 7;
include "../header.inc.php";

print "$openHTML";

if (!$page)
{
	$findPages = mysql_query("SELECT * FROM game_pages2 WHERE game = '$game'");
	while ($getPages = mysql_fetch_array($findPages))
	{
		$listPages .= "<p><B>$getPages[id] - $getPages[page_title]</b><br>Link: <input type=text value=\"<a href=view_page.php?page=$getPages[id]&game=$game>$getPages[page_title]</a>\"></p>";
	}

ECHO <<<END
<P>
Listing Pages:

$listPages

END;

}

print "$closeHTML";
?>
